<html xmlns:th="https://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <title>Hello Security!</title>
</head>
<body>
<h1>Hello Security</h1>
<div>
    <a th:href="@{/user/getUserInfo}" sec:authorize="hasAnyRole('admin','common')">个人主页</a>
    <br/>
    <a th:href="@{/user/getUserList}" sec:authorize="hasAnyRole('admin')">用户列表</a>
</div>
<a th:href="@{/logout}">Log Out</a>
</body>
</html>
